package com.ai.wxy.spring.web.conf;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 文件上传相关配置
 *
 * @author 石头
 * @Date 2019/11/15
 * @Version 1.0
 **/
@Data
@ConfigurationProperties(prefix = "spring.file.upload")
public class FileUploadProperties {
    @Value("${spring.file.upload.maxFileSize:2MB}")
    private String maxFileSize;
    @Value("${spring.file.upload.maxRequestSize:5MB}")
    private String maxRequestSize;
    @Value("${spring.file.upload.maxRequestSize:*.jpg,*.jpeg,*.gif,*.png}")
    private String whiteConditionStr;
    @Value("${spring.file.upload.resolveLazily:true}")
    private Boolean resolveLazily;
}
